#include "client.h"
/*
int workClient(int sockfd)
{
    lsClient(sockfd);
    return 0;
}
*/
int lsClient(int sockfd)
{
    train_t train;
    bzero(&train,sizeof(train));
    recv(sockfd,&train.dataLength,sizeof(int),0);

    if(train.dataLength == 0)
    {
        return 0;
    }

    recv(sockfd,train.data,train.dataLength,0);
    printf("%s\n",train.data);
    return 1;
}
